import Vue from 'vue'
import store from '@/store'
Vue.directive('auth',{
    inserted:function(node){
            // console.log('用户信息', store.state.userInfo);
            if(store.state.userInfo.auth!=1){
                node.parentElement.removeChild(node) 
            }
    }
})